package com.androidhive.jsonparsing;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

public class SingleMenuItemActivity  extends Activity {
	

	private static final String TAG_NAME = "name";
	private static final String TAG_ADDRESS = "add";
	private static final String TAG_COUNTRY = "country";
    private static final String TAG_LAT="lat";
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.single_list_item);
        Intent in = getIntent();

        String name = in.getStringExtra(TAG_NAME);
        String add = in.getStringExtra(TAG_ADDRESS);
        String ctry = in.getStringExtra(TAG_COUNTRY);
        String lat =in.getStringExtra(TAG_LAT);

        TextView lblName = (TextView) findViewById(R.id.name_label);
        TextView lblAdd = (TextView) findViewById(R.id.add_label);
        TextView lblCtry = (TextView) findViewById(R.id.ctry_label);
        TextView lbllat =(TextView)findViewById(R.id.lat_label);
        lblName.setText(name);
        lblAdd.setText(add);
        lblCtry.setText(ctry);
        lbllat.setText(lat);
    }
}
